package com.yupi.springbootinit.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

@Data
@TableName(value = "course")
public class Course implements Serializable {
    @TableId(type = IdType.AUTO)
    private Long id;
    
    private String title;
    
    private String description;
    
    @TableField("teacher_id")
    private Long teacherId;
    
    private String image;
    
    private BigDecimal price;
    
    @TableField("student_count")
    private Integer studentCount;
    
    private Integer status;
    
    @TableField("created_at")
    private Date createdAt;
    
    @TableField("updated_at")
    private Date updatedAt;
    
    @TableLogic
    @TableField("is_delete")
    private Integer isDelete;
    
    private static final long serialVersionUID = 1L;
} 